<layout name="layout" />
<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" class="table table-condensed">
        <table cellspacing="1" cellpadding="3" width="100%">
            <tbody>
            <tr>
                <td class="label">排序：</td>
                <td>
                    <input  type="text" name="sort" value="0" />
                </td>
            </tr>
            <tr>
                <td class="label">课程名：</td>
                <td>
                    <input  type="text" name="course_name" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">课程展示名：</td>
                <td>
                    <input  type="text" name="course_show_name" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">课程分类：</td>
                <td>
                    <?php buildSelect('course_category','cat_id','id','name'); ?>
                </td>
            </tr>
            <tr>
                <td class="label">课程开始时间：</td>
                <td>
                    <input class="layui-input" name="start_time" placeholder="开始时间" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </td>


            </tr>
            <tr>
                <td class="label">课程结束时间：</td>
                <td>
                    <input class="layui-input" name="end_time" placeholder="结束时间" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </td>
            </tr>
            <tr>
                <td class="label">最大参与人数：</td>
                <td>
                    <input id="" type="text" name="user_count" value="0" />
                </td>
            </tr>
            <tr>
                <td class="label">颜色配置：</td>
                <td>
                    <input id="color" type="text" name="color" value="0" />
                </td>
            </tr>
            <tr>
                <td class="label">课程等级：</td>
                <td>
                    <input  type="text" name="course_level" value="0" />
                </td>
            </tr>
            <tr>
                <td class="label">课程价格：</td>
                <td>
                    <input  type="text" name="course_price" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">课程体验价格：</td>
                <td>
                    <input  type="text" name="course_exp_price" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">课程备注：</td>
                <td>
                	<textarea id="course_comment" name="course_comment"></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">课程地点：</td>
                <td>
                	<textarea id="course_addr" name="course_addr"></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">教室：</td>
                <td>
                    <?php buildSelect('classroom','classroom_id','id','classroom_name'); ?>
                </td>
            </tr>
            <tr>
                <td class="label">上课教师：</td>
                <td>
                    <?php buildSelect('teacher','teacher_id','id','teacher_name'); ?>
                </td>
            </tr>

            <tr>
                <td class="label"> 上课积分：</td>
                <td>
                    <input  type="text" name="jifen" value="0" />
                </td>
            </tr>
            <tr>
                <td class="label">是否显示：</td>
                <td>
                    <input  type="text" name="is_show" value="1" />
                </td>
            </tr>
            <tr>
                <td class="label">封面图片：</td>
                <td>
                	<input type="file" name="logo" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>

<link href="__PUBLIC__/umeditor1_2_2-utf8-php/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/umeditor1_2_2-utf8-php/lang/zh-cn/zh-cn.js"></script>
<style>
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
</style>


<link href="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/datepicker-zh_cn.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.min.css" />
<script type="text/javascript" src="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.js"></script>

<script type="text/javascript" src="__PUBLIC__/ColorPicker/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/ColorPicker/jquery.colorpicker.js"></script>
<!-- <script type="text/javascript" src="__PUBLIC__/datetimepicker/time/i18n/jquery-ui-timepicker-addon-i18n.min.js"></script> -->


<!--layui-->
<script type="text/javascript" src="__PUBLIC__/Admin/css/layui.css"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/layui.js"></script>
<!-- <script type="text/javascript" src="__PUBLIC__/datetimepicker/time/i18n/jquery-ui-timepicker-addon-i18n.min.js"></script> -->
<script>$.timepicker.setDefaults($.timepicker.regional['zh-CN']);</script>

<script type="text/javascript">
    $(document).ready(function() {

        $("#color").colorpicker({

            fillcolor:true

        });


    });


        /* $('#start_time').datetimepicker({
         showSecond: true,
         showMillisec: true,
         timeFormat: 'hh:mm:ss:l'
         });*/
//        $("#end_time").datetimepicker();


        layui.use('laydate', function(){
            var laydate = layui.laydate;
            document.getElementById('start_time').onclick = function(){

            }

    });
</script>
